package Elevator;

/**
 * Created by Connor Madden.
 * User: Connor Madden
 * Date: 7/10/11
 * Time: 12:36 PM
 */
public class ElevatorStateStopped implements ElevatorStateI {
    public boolean move(Elevator elevator, float destination) {
        return false;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public boolean openDoor(Elevator elevator) {
        elevator.setStateObject(new ElevatorStateOpening(elevator));
        return true;
    }

    public boolean closeDoor(Elevator elevator) {
        return false;
    }

    public Elevator.State getState() {
        return Elevator.State.STOPPED;
    }
}
